<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Labyrinthe:  Fichier source de FormNbJoueurs.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>FormNbJoueurs.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#pragma once</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span>
<a name="l00003"></a>00003         <span class="keyword">using namespace </span>System;
<a name="l00004"></a>00004         <span class="keyword">using namespace </span>System::ComponentModel;
<a name="l00005"></a>00005         <span class="keyword">using namespace </span>System::Collections;
<a name="l00006"></a>00006         <span class="keyword">using namespace </span>System::Windows::Forms;
<a name="l00007"></a>00007         <span class="keyword">using namespace </span>System::Data;
<a name="l00008"></a>00008         <span class="keyword">using namespace </span>System::Drawing;
<a name="l00009"></a>00009 
<a name="l00019"></a>00019 <span class="preprocessor">        #include "<a class="code" href="Jeu_8h.html">Jeu.h</a>"</span>
<a name="l00020"></a>00020 <span class="preprocessor">        #include "Form1.h"</span>
<a name="l00021"></a><a class="code" href="classFormNbJoueurs.html">00021</a>         <span class="keyword">public ref class</span> <a class="code" href="classFormNbJoueurs.html" title="Summary for FormNbJoueurs.">FormNbJoueurs</a> : <span class="keyword">public</span> System::Windows::Forms::Form
<a name="l00022"></a>00022         {
<a name="l00023"></a>00023         <span class="keyword">private</span> :
<a name="l00024"></a>00024                 <span class="keywordtype">int</span>* _nbJoueurs;
<a name="l00025"></a>00025         <span class="keyword">public</span>:
<a name="l00026"></a>00026                 <a class="code" href="classFormNbJoueurs.html" title="Summary for FormNbJoueurs.">FormNbJoueurs</a>(<span class="keywordtype">int</span>* nbJoueurs)
<a name="l00027"></a>00027                 {
<a name="l00028"></a>00028                         <a class="code" href="classFormNbJoueurs.html#16a04eb19c58e5875e7d087eae7276f3" title="Required method for Designer support - do not modify the contents of this method...">InitializeComponent</a>();
<a name="l00029"></a>00029                         _nbJoueurs=nbJoueurs;
<a name="l00030"></a>00030                 }
<a name="l00031"></a>00031 
<a name="l00032"></a>00032         <span class="keyword">protected</span>:
<a name="l00036"></a><a class="code" href="classFormNbJoueurs.html#7f7dedef1216bac9356a9157d6e45e9f">00036</a>                 <a class="code" href="classFormNbJoueurs.html#7f7dedef1216bac9356a9157d6e45e9f" title="Clean up any resources being used.">~FormNbJoueurs</a>()
<a name="l00037"></a>00037                 {
<a name="l00038"></a>00038                         <span class="keywordflow">if</span> (<a class="code" href="classFormNbJoueurs.html#7fc50fff27b77055434f581b0ef7669e" title="Required designer variable.">components</a>)
<a name="l00039"></a>00039                         {
<a name="l00040"></a>00040                                 <span class="keyword">delete</span> <a class="code" href="classFormNbJoueurs.html#7fc50fff27b77055434f581b0ef7669e" title="Required designer variable.">components</a>;
<a name="l00041"></a>00041                         }
<a name="l00042"></a>00042                 }
<a name="l00043"></a>00043         <span class="keyword">private</span>: System::Windows::Forms::Label^  label1;
<a name="l00044"></a>00044         <span class="keyword">private</span>: System::Windows::Forms::Button^  button1;
<a name="l00045"></a>00045         <span class="keyword">private</span>: System::Windows::Forms::Button^  button2;
<a name="l00046"></a>00046         <span class="keyword">private</span>: System::Windows::Forms::Button^  button3;
<a name="l00047"></a>00047         <span class="keyword">private</span>: System::Windows::Forms::Button^  button4;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049         <span class="keyword">private</span>:
<a name="l00053"></a><a class="code" href="classFormNbJoueurs.html#7fc50fff27b77055434f581b0ef7669e">00053</a>                 System::ComponentModel::Container ^<a class="code" href="classFormNbJoueurs.html#7fc50fff27b77055434f581b0ef7669e" title="Required designer variable.">components</a>;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="preprocessor">#pragma region Windows Form Designer generated code</span>
<a name="l00060"></a><a class="code" href="classFormNbJoueurs.html#16a04eb19c58e5875e7d087eae7276f3">00060</a> <span class="preprocessor">                void InitializeComponent(void)</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>                {
<a name="l00062"></a>00062                         this-&gt;label1 = (<span class="keyword">gcnew</span> System::Windows::Forms::Label());
<a name="l00063"></a>00063                         this-&gt;button1 = (<span class="keyword">gcnew</span> System::Windows::Forms::Button());
<a name="l00064"></a>00064                         this-&gt;button2 = (<span class="keyword">gcnew</span> System::Windows::Forms::Button());
<a name="l00065"></a>00065                         this-&gt;button3 = (<span class="keyword">gcnew</span> System::Windows::Forms::Button());
<a name="l00066"></a>00066                         this-&gt;button4 = (<span class="keyword">gcnew</span> System::Windows::Forms::Button());
<a name="l00067"></a>00067                         this-&gt;SuspendLayout();
<a name="l00068"></a>00068                         <span class="comment">// </span>
<a name="l00069"></a>00069                         <span class="comment">// label1</span>
<a name="l00070"></a>00070                         <span class="comment">// </span>
<a name="l00071"></a>00071                         this-&gt;label1-&gt;AutoSize = <span class="keyword">true</span>;
<a name="l00072"></a>00072                         this-&gt;label1-&gt;Font = (<span class="keyword">gcnew</span> System::Drawing::Font(L<span class="stringliteral">"Microsoft Sans Serif"</span>, 15, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
<a name="l00073"></a>00073                                 static_cast&lt;System::Byte&gt;(0)));
<a name="l00074"></a>00074                         this-&gt;label1-&gt;Location = System::Drawing::Point(18, 20);
<a name="l00075"></a>00075                         this-&gt;label1-&gt;Name = L<span class="stringliteral">"label1"</span>;
<a name="l00076"></a>00076                         this-&gt;label1-&gt;Size = System::Drawing::Size(342, 25);
<a name="l00077"></a>00077                         this-&gt;label1-&gt;TabIndex = 0;
<a name="l00078"></a>00078                         this-&gt;label1-&gt;Text = L<span class="stringliteral">"Veuillez indiquer le nombre de joueurs"</span>;
<a name="l00079"></a>00079                         <span class="comment">// </span>
<a name="l00080"></a>00080                         <span class="comment">// button1</span>
<a name="l00081"></a>00081                         <span class="comment">// </span>
<a name="l00082"></a>00082                         this-&gt;button1-&gt;Font = (<span class="keyword">gcnew</span> System::Drawing::Font(L<span class="stringliteral">"Microsoft Sans Serif"</span>, 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
<a name="l00083"></a>00083                                 static_cast&lt;System::Byte&gt;(0)));
<a name="l00084"></a>00084                         this-&gt;button1-&gt;Location = System::Drawing::Point(23, 70);
<a name="l00085"></a>00085                         this-&gt;button1-&gt;Margin = System::Windows::Forms::Padding(15, 3, 15, 3);
<a name="l00086"></a>00086                         this-&gt;button1-&gt;Name = L<span class="stringliteral">"button1"</span>;
<a name="l00087"></a>00087                         this-&gt;button1-&gt;Size = System::Drawing::Size(60, 60);
<a name="l00088"></a>00088                         this-&gt;button1-&gt;TabIndex = 1;
<a name="l00089"></a>00089                         this-&gt;button1-&gt;Text = L<span class="stringliteral">"1"</span>;
<a name="l00090"></a>00090                         this-&gt;button1-&gt;UseVisualStyleBackColor = <span class="keyword">true</span>;
<a name="l00091"></a>00091                         this-&gt;button1-&gt;Click += <span class="keyword">gcnew</span> System::EventHandler(<span class="keyword">this</span>, &amp;FormNbJoueurs::button1_Click);
<a name="l00092"></a>00092                         <span class="comment">// </span>
<a name="l00093"></a>00093                         <span class="comment">// button2</span>
<a name="l00094"></a>00094                         <span class="comment">// </span>
<a name="l00095"></a>00095                         this-&gt;button2-&gt;Font = (<span class="keyword">gcnew</span> System::Drawing::Font(L<span class="stringliteral">"Microsoft Sans Serif"</span>, 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
<a name="l00096"></a>00096                                 static_cast&lt;System::Byte&gt;(0)));
<a name="l00097"></a>00097                         this-&gt;button2-&gt;Location = System::Drawing::Point(113, 70);
<a name="l00098"></a>00098                         this-&gt;button2-&gt;Margin = System::Windows::Forms::Padding(15, 3, 15, 3);
<a name="l00099"></a>00099                         this-&gt;button2-&gt;Name = L<span class="stringliteral">"button2"</span>;
<a name="l00100"></a>00100                         this-&gt;button2-&gt;Size = System::Drawing::Size(60, 60);
<a name="l00101"></a>00101                         this-&gt;button2-&gt;TabIndex = 2;
<a name="l00102"></a>00102                         this-&gt;button2-&gt;Text = L<span class="stringliteral">"2"</span>;
<a name="l00103"></a>00103                         this-&gt;button2-&gt;UseVisualStyleBackColor = <span class="keyword">true</span>;
<a name="l00104"></a>00104                         this-&gt;button2-&gt;Click += <span class="keyword">gcnew</span> System::EventHandler(<span class="keyword">this</span>, &amp;FormNbJoueurs::button2_Click);
<a name="l00105"></a>00105                         <span class="comment">// </span>
<a name="l00106"></a>00106                         <span class="comment">// button3</span>
<a name="l00107"></a>00107                         <span class="comment">// </span>
<a name="l00108"></a>00108                         this-&gt;button3-&gt;Font = (<span class="keyword">gcnew</span> System::Drawing::Font(L<span class="stringliteral">"Microsoft Sans Serif"</span>, 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
<a name="l00109"></a>00109                                 static_cast&lt;System::Byte&gt;(0)));
<a name="l00110"></a>00110                         this-&gt;button3-&gt;Location = System::Drawing::Point(203, 70);
<a name="l00111"></a>00111                         this-&gt;button3-&gt;Margin = System::Windows::Forms::Padding(15, 3, 15, 3);
<a name="l00112"></a>00112                         this-&gt;button3-&gt;Name = L<span class="stringliteral">"button3"</span>;
<a name="l00113"></a>00113                         this-&gt;button3-&gt;Size = System::Drawing::Size(60, 60);
<a name="l00114"></a>00114                         this-&gt;button3-&gt;TabIndex = 3;
<a name="l00115"></a>00115                         this-&gt;button3-&gt;Text = L<span class="stringliteral">"3"</span>;
<a name="l00116"></a>00116                         this-&gt;button3-&gt;UseVisualStyleBackColor = <span class="keyword">true</span>;
<a name="l00117"></a>00117                         this-&gt;button3-&gt;Click += <span class="keyword">gcnew</span> System::EventHandler(<span class="keyword">this</span>, &amp;FormNbJoueurs::button3_Click);
<a name="l00118"></a>00118                         <span class="comment">// </span>
<a name="l00119"></a>00119                         <span class="comment">// button4</span>
<a name="l00120"></a>00120                         <span class="comment">// </span>
<a name="l00121"></a>00121                         this-&gt;button4-&gt;Font = (<span class="keyword">gcnew</span> System::Drawing::Font(L<span class="stringliteral">"Microsoft Sans Serif"</span>, 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
<a name="l00122"></a>00122                                 static_cast&lt;System::Byte&gt;(0)));
<a name="l00123"></a>00123                         this-&gt;button4-&gt;Location = System::Drawing::Point(293, 70);
<a name="l00124"></a>00124                         this-&gt;button4-&gt;Margin = System::Windows::Forms::Padding(15, 3, 15, 3);
<a name="l00125"></a>00125                         this-&gt;button4-&gt;Name = L<span class="stringliteral">"button4"</span>;
<a name="l00126"></a>00126                         this-&gt;button4-&gt;RightToLeft = System::Windows::Forms::RightToLeft::No;
<a name="l00127"></a>00127                         this-&gt;button4-&gt;Size = System::Drawing::Size(60, 60);
<a name="l00128"></a>00128                         this-&gt;button4-&gt;TabIndex = 4;
<a name="l00129"></a>00129                         this-&gt;button4-&gt;Text = L<span class="stringliteral">"4"</span>;
<a name="l00130"></a>00130                         this-&gt;button4-&gt;UseVisualStyleBackColor = <span class="keyword">true</span>;
<a name="l00131"></a>00131                         this-&gt;button4-&gt;Click += <span class="keyword">gcnew</span> System::EventHandler(<span class="keyword">this</span>, &amp;FormNbJoueurs::button4_Click);
<a name="l00132"></a>00132                         <span class="comment">// </span>
<a name="l00133"></a>00133                         <span class="comment">// FormNbJoueurs</span>
<a name="l00134"></a>00134                         <span class="comment">// </span>
<a name="l00135"></a>00135                         this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);
<a name="l00136"></a>00136                         this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
<a name="l00137"></a>00137                         this-&gt;ClientSize = System::Drawing::Size(382, 142);
<a name="l00138"></a>00138                         this-&gt;Controls-&gt;Add(this-&gt;button4);
<a name="l00139"></a>00139                         this-&gt;Controls-&gt;Add(this-&gt;button3);
<a name="l00140"></a>00140                         this-&gt;Controls-&gt;Add(this-&gt;button2);
<a name="l00141"></a>00141                         this-&gt;Controls-&gt;Add(this-&gt;button1);
<a name="l00142"></a>00142                         this-&gt;Controls-&gt;Add(this-&gt;label1);
<a name="l00143"></a>00143                         this-&gt;Name = L<span class="stringliteral">"FormNbJoueurs"</span>;
<a name="l00144"></a>00144                         this-&gt;Text = L<span class="stringliteral">"Nombre de joueurs"</span>;
<a name="l00145"></a>00145                         this-&gt;ResumeLayout(<span class="keyword">false</span>);
<a name="l00146"></a>00146                         this-&gt;PerformLayout();
<a name="l00147"></a>00147 
<a name="l00148"></a>00148                 }
<a name="l00149"></a>00149 <span class="preprocessor">#pragma endregion</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>        <span class="keyword">private</span>: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
<a name="l00151"></a>00151                 *_nbJoueurs=1;
<a name="l00152"></a>00152                 this-&gt;Close();
<a name="l00153"></a>00153         }
<a name="l00154"></a>00154         <span class="keyword">private</span>: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
<a name="l00155"></a>00155                 *_nbJoueurs=2;
<a name="l00156"></a>00156                 this-&gt;Close();
<a name="l00157"></a>00157 
<a name="l00158"></a>00158         }
<a name="l00159"></a>00159         <span class="keyword">private</span>: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
<a name="l00160"></a>00160                 *_nbJoueurs=3;
<a name="l00161"></a>00161                 this-&gt;Close();
<a name="l00162"></a>00162         }
<a name="l00163"></a>00163         <span class="keyword">private</span>: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
<a name="l00164"></a>00164                 *_nbJoueurs=4;
<a name="l00165"></a>00165                 this-&gt;Close();
<a name="l00166"></a>00166         }
<a name="l00167"></a>00167                  
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 };
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Fri Feb 19 10:49:27 2010 pour Labyrinthe par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
